<name>Teleboas</name>
<profession>M Teacher of Spellcasting</profession>
<faction>Centaurs</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>If you start a fight with a bully, be sure that your spells take effect before the crude weapons of your opponent reach you.</text>
      <return>main</return>
    </reply>
    <reply>
      <text>Fizzled again today, didn't you?</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Where does higher mastery of spellcasting lead us?</text>
      <npc>
        <reply>
          <text>As you improve your spellcasting skills above expert level, many of your spells gain impact, speed and accuracy. It used to be that you would learn many new generic spells as well, but there is just the one master spell now. Interest in the art of spellcasting is waning. Mages today want to learn all those spectacular elemental and self spells as soon as possible and have little patience anymore to hone their spellcasting skill.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Spellcasting Master.</text>
      <npc>
        <reply>
          <if><grandmaster>Spellcasting</grandmaster></if>
          <text>You already are a grandmaster!!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>Spellcasting</master></if>
          <text>You already are a master!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Spellcasting</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Student</class></if>
          <text>First, you must be promoted to Scholar, Cleric, Saint, Sorcerer or Necromancer.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Acolyte</class></if>
          <text>First, you must be promoted to Cleric or Saint.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Apprentice</class></if>
          <text>First, you must be promoted to Sorcerer or Necromancer.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if>
            <class>!Scholar</class>
            <class>!Cleric</class>
            <class>!Saint</class>
            <class>!Sorcerer</class>
            <class>!Necromancer</class>
          </if>
          <text>Heroes of your class cannot achieve master status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>!Spellcasting</expert></if>
          <text>Before you can be taught mastery, you must become an expert.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><masterlevel>!Spellcasting</masterlevel></if>
          <text>You are not good enough yet.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!5000</gold></if>
          <text>You cannot afford the fee.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Congratulations, [name]!</text>
          <return>main</return> 
          <script>
            <gold>-5000</gold>
            <expert>Spellcasting</expert>
            <log>[name] Spellcasting Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Where does the Grandmaster Teacher of Spellcasting live?</text>
      <npc>
        <reply>
          <text>The wizard Gregorius teaches grandmastery. He has his quarters in the Gardens of Harmony, far north on the coast.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Thank you!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>